MifareSectorData

data class MifareSectorData(val sectorIndex: Int, val keyA: String? = null, val keyB: String? = null, val blockData: List<MifareBlockData> = emptyList()) : Parcelable

This data class contains the data necessary when reading data from a mifare card. The keys required for authenticating the sector we are attempting to write to should be provided only if we want to use them for authentication. if we provide keyA it will be used and we shouldn't provide keyB.

Constructors

Link copied to clipboard
constructor(sectorIndex: Int, keyA: String? = null, keyB: String? = null, blockData: List<MifareBlockData> = emptyList())

Properties

Link copied to clipboard

the block data list to write to the sector containing the data for each block

Link copied to clipboard
val keyA: String? = null

the keyA of the sector to be used if not null (6 bytes) as a hexadecimal string

Link copied to clipboard
val keyB: String? = null

the keyB of the sector to be used if not null and keyA is null (6 bytes) as a hexadecimal string

Link copied to clipboard

the sector we want to write this block data to

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)